@media screen {
  @font-face {
    font-family: 'Ivy Presto Headline';
    src: url('https://storage.googleapis.com/nexus-cloud-storage/fonts/ivy-presto-headline-light.otf') format('opentype');
  }

  @font-face {
    font-family: 'SF Pro';
    src: url('https://storage.googleapis.com/nexus-cloud-storage/fonts/sf-pro.ttf') format('truetype');
  }
}

body {
  background: radial-gradient(circle, #fdfdfd, #00000015);
}

.logo {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 20px 0px;
  object-fit: contain;
}

.new-nexus-version {
  position: fixed;
  bottom: 10px;
  right: 15px;
  display: flex;
  align-items: center;
  color: #696969;
  font-size: 14px;
  font-weight: 500;
  font-family: 'SF Pro', sans-serif;
}

.error-box {
  border: none;
  background-color: rgba(250,250,250);
  border-radius: 6px;
  outline: none;
  font-size: 24px;
  font-family: Montserrat, sans-serif;
  text-align: center;
  font-weight: bold;
  height: 100%;
  width: 800px;
  color: #8a3030;
  margin: 20px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  resize: none;
  padding: 10px;
}

.error-box-mobile {
  border: none;
  background-color: rgba(250,250,250);
  border-radius: 6px;
  outline: none;
  font-size: 42px;
  font-family: Montserrat, sans-serif;
  text-align: center;
  font-weight: bold;
  height: 100px;
  width: 100%;
  color: #8a3030;
}

/* NEW ERROR / SUCCESS BOX STYLES */
.alert-box-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  display: flex;
}

#error-box-modal {
  z-index: 1001;
}

#success-box-modal {
  z-index: 1000;
}

.alert-box-modal-content {
  position: absolute;
  padding: 20px;
  width: fit-content;
  height: fit-content;
  max-height: 75%;
  max-width: 75%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  overflow-x: hidden;
  font-family: Montserrat, sans-serif;
  font-size: 3rem;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-box-modal-header {
  color: whitesmoke;
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin: 5px 0px;
}

.alert-box-modal-subheader {
  background-color: #EEEEEE;
  color: #222222;
  border-radius: 10px;
  text-align: center;
  font-size: 2rem;
  padding: 20px;
  margin: 5px 0px;
}

.alert-box-modal-button {
  position: absolute;
  top: 0;
  right: 0;
  color: #222222;
  border: none;
  font-size: 28px;
  font-weight: bold;
  background-color: whitesmoke;
  padding: 10px 20px;
  border-radius: 0px 0px 0px 5px;
  transition: ease-in-out 100ms;
}

.alert-box-modal-button:hover {
  background-color: white;
  cursor: pointer;
  scale: 1.01;
}

.success {
  background-color: #657F60;
  color: whitesmoke;
}

.error {
  background-color: #c34132;
  color: whitesmoke;
}
/* END NEW ERROR / SUCCESS BOX STYLES */

.employee-container {
  position: absolute;
  right: 10px;
  top: -10px;
}

.employee-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
}

.heading-section {
  display: flex;
  justify-content: center;
}

.heading {
  font-family: Montserrat, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #333;
}

.red-box {
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto;
  max-width: 100vw;
  max-height: 100vh;
  justify-content: center;
  display: flex;
}

.column {
  display: inline-block;
  vertical-align: top;
}

.orange-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  max-height: 69vh;
  overflow: auto;
  margin: 10px;
}

.green-box {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.element-box-heading {
  font-family: 'SF Pro', sans-serif;
  font-size: 24px;
  text-align: center;
}

.text-area {
  resize: none;
  outline: 1px solid #ccc !important;
}

.text-area:focus {
  outline: 2px solid #454545 !important;
}

/* Buttons -------------------------------------------------------------------------------------------- */
.nexus-button, .logout-button {
  position: fixed;
  top: 10px;
  font-family: 'SF Pro', sans-serif;
  font-weight: 700;
  font-size: 24px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(50, 50, 50, 0.25);
  border-radius: 5px;
  color: rgba(50, 50, 50, 0.25);
  transition: 200ms ease-in-out;
  background-color:rgba(0, 0, 0, 0);
  z-index: 10000;
}

.nexus-button {
  left: 10px;
}

.logout-button {
  right: 10px;
}

.nexus-button:hover, .logout-button:hover {
  color: whitesmoke;
  background-color: #323232;
  border: 2px solid #323232;
  cursor: pointer;
}

.button {
  font-family: Montserrat;
  background-color: #657F60;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 20px 40px;
  font-size: 40px;
  cursor: pointer;
  font-weight: bold;
  margin: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
  transform: scale(1.01);
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* CSS For Scroll Bars & Range ---------------------------------------------------------------- */

/* Style for all scrollbars */
::-webkit-scrollbar {
  width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  background-color: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  cursor: pointer;
}

/*Range Reset*/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  width: 100%;
  margin: 10px 0;
  outline: none;
  border: none;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #e0e0e0;
  border-radius: 0.5rem;
  height: 0.5rem;  
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: -12px; /* Centers thumb on the track */

  /*custom styles*/
  background-color: #657F60;
  height: 2rem;
  width: 0.5rem;
  border-radius: 10px;
}

input[type="range"]:focus::-webkit-slider-thumb {   
  outline: 2px solid #454545;
  outline-offset: 0rem; 
  background-color: #9de394;
}

/******** Firefox styles ********/
/* slider track */
input[type="range"]::-moz-range-track {
  background-color: #053a5f;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  border: none; /*Removes extra border that FF applies*/
  border-radius: 0; /*Removes default border-radius that FF applies*/

  /*custom styles*/
  background-color: #5cd5eb;
  height: 2rem;
  width: 1rem;
}

input[type="range"]:focus::-moz-range-thumb {
  border: 1px solid #053a5f;
  outline: 3px solid #053a5f;
  outline-offset: 0.125rem; 
}

/* CSS for errors and loading -------------------------------------------------------------------------------------------------------------------- */

.screen-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top:0;
  left:0;
  background: linear-gradient(190deg, #ffffffb2, 60%, #00000017);
  z-index: 5;
}

.ring-container {
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.ring {
  --uib-size: 100px;
  --uib-speed: 2s;
  --uib-color: #000000;
  
  height: var(--uib-size);
  width: var(--uib-size);
  vertical-align: middle;
  transform-origin: center;
  animation: rotate var(--uib-speed) linear infinite;
}

.ring circle {
  fill: none;
  stroke: var(--uib-color);
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: stretch calc(var(--uib-speed) * 0.75) ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes stretch {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dashoffset: -124px;
  }
}

/* Begin CSS for Display Error function -------------------------------------------------------------------------------------------------------------------------------- */
.popup {
  position: fixed;
  top: 1%;
  left: 1%;
  background-color: #ffffff;
  border-radius: 5px;
  border: 1px solid red;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
}

.popup:hover {
  cursor: move;
}

.popup-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: red;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.popup-title {
  margin-right: auto;
  margin: 10px;
}

.popup-close {
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: red;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 20px;
  border: none;
  margin-left: 20px; 
}

.popup-close:hover {
  background-color: rgb(175, 0, 0);
  cursor: pointer;
}

.popup-message {
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* FORM CONTENT */
.modified-red-box {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.form-box {
  max-height: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-family: 'SF Pro', sans-serif;
  font-size: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 10px;
  background-color: #fafafa;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.form-group > .form-group-content {
  margin-bottom: 0px;
}

.form-group > .form-group-content:first-child {
  margin-top: -10px;
}

.form-group > .form-group-content:last-child {
  margin-bottom: 0;
}

.form-group-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'SF Pro', sans-serif;
}

.form-group-content {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: stretch;
}

.form-group-content > div {
  flex: 1;
}

.form-group-inner-content > .input-label + .standard-input[disabled], .standard-input[readonly] {
  background-color: rgb(222, 222, 222);
  color: black;
}

.form-group-inner-content {
  position: relative;
}

.form-group-inner-content:last-child {
  margin-bottom: 0;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  top: 8px;
  left: 6px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  pointer-events: none;
  transition: 0.2s ease all;
  background-color: #fafafa;
  padding: 0px 3px;
  border-radius: 3px;
  font-family: 'SF Pro', sans-serif;
  z-index: 2;
}

.input-label + .standard-input[disabled] {
  background-color: rgb(222, 222, 222);
  color: black;
  cursor: not-allowed;
}

.standard-input {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: none;
  font-size: 0.8rem;
  resize: vertical;
  text-align: left;
  font-family: 'SF Pro', sans-serif;
  padding: 10px;
}

.form-group-content-inner .standard-input[type="checkbox"] {
  width: auto;
}

.form-group-content-inner .standard-input[type="checkbox"] + .input-label {
  display: inline-block;
  padding: 10px 5px;
  border-radius: 5px;
  margin: 5px;
  cursor: pointer;
  font-family: sans-serif;
  text-align: center;
  transition: border 200ms ease-in-out;
  position: relative;
  top: auto;
  left: auto;
  color: #222222;
  border: 2px solid transparent;
}

.form-group-content-inner .standard-input[type="checkbox"]:checked + .input-label {
  border: 2px solid #657F60;
}

.standard-input:focus {
  outline: none;
}

.standard-input::placeholder {
  color: #808080;
}

.input-message {
  position: absolute;
  top: -25px;
  background-color: #333;
  color: whitesmoke;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.input-message.visible {
  opacity: 1;
  visibility: visible;
}

.input-message::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #333;
}

/* DEPRECATED MODULE BOX */
.deprecated-box {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 20px;
  margin: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.deprecated-box-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.deprecated-sign {
  font-size: 50px;
  padding: 0px 5px;
}

.deprecated-box-content {
  margin-top: 5px;
  text-align: center;
}

.deprecated-box-content > div {
  margin: 5px;
}